//
//  MusicDownloadTask.h
//  DownloadDemo
//
//  Created by 陈凯 on 16/4/27.
//  Copyright © 2016年 鸥！陈凯. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);
@interface MusicDownloadTask : NSObject
// URL参数
- (void)downloadUrl:(NSURL *)url progressBlock:(ProgressBlock)proBlock complete:(CompleteBlock)comBlock;
//开始
- (void)resume;
//暂停
- (void)suspend;
//修改block
- (void)setProgressBlock:(ProgressBlock)proBlock;
- (void)setCompleteBlock:(CompleteBlock)comBlock;
@end
